/*
-------------------------------------------------------------------
BIE is Copyright 2001-2003 Brunswick Corp.
-------------------------------------------------------------------
Please read the legal notices (docs/legal.txt) and the license
(docs/bie_license.txt) that came with this distribution before using
this software.
-------------------------------------------------------------------
*/
package com.webdeninteractive.sbie.service;

import com.webdeninteractive.sbie.Service;
import com.webdeninteractive.sbie.Client;
import com.webdeninteractive.sbie.ProtocolHandler;

public class TestServiceTwo
    extends ServiceBase 
    implements Service
{
    /** Have this service perform its task. */
    public void runService() {
        String id = getParameter("id");
        if (id==null) {
            id = "TestServiceTwo";
            setParameter("id", id); // not persisted!
        }
        String message = getParameter("message");
        if ( message == null ) {
            message = "(No message parameter set)";
        }
        System.out.println("Message from " + id + "> " + message);
    }


}
